package com.efast.dmom.mgmt.entity.les;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 盘点明细表
 * </p>
 *
 * @author ChenLiPeng
 * @since 2018-06-12
 */
@TableName("tt_whm_count_detail")
public class TtWhmCountDetail implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * count_detail序号
	 */
	@TableId(value = "tt_whm_count_detail_id", type = IdType.AUTO)
	private Integer ttWhmCountDetailId;
	/**
	 * count_head序号
	 */
	@TableField("tt_whm_count_header_id")
	private Integer ttWhmCountHeaderId;
	/**
	 * 要求盘点日期
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("count_date")
	private Date countDate;
	/**
	 * 零件号
	 */
	@TableField("part_no_version")
	private String partNoVersion;
	/**
	 * 零件中文名称
	 */
	@TableField("part_name_c")
	private String partNameC;
	/**
	 * 零件英文简称
	 */
	@TableField("part_name_e_s")
	private String partNameES;
	/**
	 * 零件基本单位
	 */
	@TableField("base_unit")
	private String baseUnit;
	/**
	 * 供应商编号
	 */
	@TableField("suppl_no")
	private String supplNo;
	/**
	 * 零件供应商关系id
	 */
	@TableField("tr_bas_part_suppl_id")
	private Integer trBasPartSupplId;
	/**
	 * 入库包装代码
	 */
	@TableField("inbound_pack_no")
	private String inboundPackNo;
	/**
	 * 库存箱数
	 */
	@TableField("package_num")
	private Integer packageNum;
	/**
	 * 仓储单元id
	 */
	@TableField("tm_bas_storage_id")
	private Integer tmBasStorageId;
	/**
	 * 仓储编号
	 */
	@TableField("loc_no")
	private String locNo;
	/**
	 * 库内跟踪流水号码
	 */
	@TableField("inb_serial_no")
	private String inbSerialNo;
	/**
	 * 批次号
	 */
	@TableField("lot_no")
	private String lotNo;
	/**
	 * 库存数量
	 */
	@TableField("cur_qty")
	private Integer curQty;
	/**
	 * 实盘数量-初盘
	 */
	@TableField("actual_qty_1")
	private Integer actualQty1;
	/**
	 * 实盘数量-复盘
	 */
	@TableField("actual_qty_2")
	private Integer actualQty2;
	/**
	 * 是否需要复盘，0不 1需要
	 */
	@TableField("need_check")
	private Integer needCheck;
	/**
	 * 实际仓储单元id
	 */
	@TableField("actual_storage_id")
	private Integer actualStorageId;
	/**
	 * 实际箱数
	 */
	@TableField("actual_package_num")
	private Integer actualPackageNum;
	@TableField("part_pack_serial")
	private String partPackSerial;
	/**
	 * 状态0新任务 1盘点中 2盘点完成 3关闭
	 */
	@TableField("count_status")
	private String countStatus;
	/**
	 * 差异零件号
	 */
	@TableField("actual_part_no")
	private String actualPartNo;
	@TableField("detail_sn")
	private Integer detailSn;
	/**
	 * 备注1
	 */
	private String note1;
	/**
	 * 备注2
	 */
	private String note2;
	/**
	 * 备注3
	 */
	private String note3;
	/**
	 * 备注4
	 */
	private String note4;
	/**
	 * 差异供应商号
	 */
	@TableField("actual_suppl_no")
	private String actualSupplNo;
	/**
	 * 初盘人
	 */
	@TableField("actual_user1")
	private String actualUser1;
	/**
	 * 复盘人
	 */
	@TableField("actual_user2")
	private String actualUser2;
	/**
	 * 初盘时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("actual_time1")
	private Date actualTime1;
	/**
	 * 复盘时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("actual_time2")
	private Date actualTime2;
	/**
	 * 复盘箱数
	 */
	@TableField("actual_package_num2")
	private Integer actualPackageNum2;
	/**
	 * 是否激活
	 */
	@TableField("mark_status")
	private Integer markStatus;
	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("create_time")
	private Date createTime;
	/**
	 * 创建用户
	 */
	@TableField("create_user")
	private String createUser;
	/**
	 * 上次更新时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField("last_update_time")
	private Date lastUpdateTime;
	/**
	 * 更改用户
	 */
	@TableField("last_update_user")
	private String lastUpdateUser;
	/**
	 * 版本控制
	 */
	@TableField("opt_counter")
	private Integer optCounter;
	/**
	 * 企业代码
	 */
	@TableField("company_code")
	private String companyCode;

	public Integer getTtWhmCountDetailId() {
		return ttWhmCountDetailId;
	}

	public void setTtWhmCountDetailId(Integer ttWhmCountDetailId) {
		this.ttWhmCountDetailId = ttWhmCountDetailId;
	}

	public Integer getTtWhmCountHeaderId() {
		return ttWhmCountHeaderId;
	}

	public void setTtWhmCountHeaderId(Integer ttWhmCountHeaderId) {
		this.ttWhmCountHeaderId = ttWhmCountHeaderId;
	}

	public Date getCountDate() {
		return countDate;
	}

	public void setCountDate(Date countDate) {
		this.countDate = countDate;
	}

	public String getPartNoVersion() {
		return partNoVersion;
	}

	public void setPartNoVersion(String partNoVsersion) {
		this.partNoVersion = partNoVsersion;
	}

	public String getPartNameC() {
		return partNameC;
	}

	public void setPartNameC(String partNameC) {
		this.partNameC = partNameC;
	}

	public String getPartNameES() {
		return partNameES;
	}

	public void setPartNameES(String partNameES) {
		this.partNameES = partNameES;
	}

	public String getBaseUnit() {
		return baseUnit;
	}

	public void setBaseUnit(String baseUnit) {
		this.baseUnit = baseUnit;
	}

	public String getSupplNo() {
		return supplNo;
	}

	public void setSupplNo(String supplNo) {
		this.supplNo = supplNo;
	}

	public Integer getTrBasPartSupplId() {
		return trBasPartSupplId;
	}

	public void setTrBasPartSupplId(Integer trBasPartSupplId) {
		this.trBasPartSupplId = trBasPartSupplId;
	}

	public String getInboundPackNo() {
		return inboundPackNo;
	}

	public void setInboundPackNo(String inboundPackNo) {
		this.inboundPackNo = inboundPackNo;
	}

	public Integer getPackageNum() {
		return packageNum;
	}

	public void setPackageNum(Integer packageNum) {
		this.packageNum = packageNum;
	}

	public Integer getTmBasStorageId() {
		return tmBasStorageId;
	}

	public void setTmBasStorageId(Integer tmBasStorageId) {
		this.tmBasStorageId = tmBasStorageId;
	}

	public String getInbSerialNo() {
		return inbSerialNo;
	}

	public void setInbSerialNo(String inbSerialNo) {
		this.inbSerialNo = inbSerialNo;
	}

	public String getLotNo() {
		return lotNo;
	}

	public void setLotNo(String lotNo) {
		this.lotNo = lotNo;
	}

	public Integer getCurQty() {
		return curQty;
	}

	public void setCurQty(Integer curQty) {
		this.curQty = curQty;
	}

	public Integer getActualQty1() {
		return actualQty1;
	}

	public void setActualQty1(Integer actualQty1) {
		this.actualQty1 = actualQty1;
	}

	public Integer getActualQty2() {
		return actualQty2;
	}

	public void setActualQty2(Integer actualQty2) {
		this.actualQty2 = actualQty2;
	}

	public Integer getNeedCheck() {
		return needCheck;
	}

	public void setNeedCheck(Integer needCheck) {
		this.needCheck = needCheck;
	}

	public Integer getActualStorageId() {
		return actualStorageId;
	}

	public void setActualStorageId(Integer actualStorageId) {
		this.actualStorageId = actualStorageId;
	}

	public Integer getActualPackageNum() {
		return actualPackageNum;
	}

	public void setActualPackageNum(Integer actualPackageNum) {
		this.actualPackageNum = actualPackageNum;
	}

	public String getPartPackSerial() {
		return partPackSerial;
	}

	public void setPartPackSerial(String partPackSerial) {
		this.partPackSerial = partPackSerial;
	}

	public String getCountStatus() {
		return countStatus;
	}

	public void setCountStatus(String countStatus) {
		this.countStatus = countStatus;
	}

	public String getActualPartNo() {
		return actualPartNo;
	}

	public void setActualPartNo(String actualPartNo) {
		this.actualPartNo = actualPartNo;
	}

	public Integer getDetailSn() {
		return detailSn;
	}

	public void setDetailSn(Integer detailSn) {
		this.detailSn = detailSn;
	}

	public String getNote1() {
		return note1;
	}

	public void setNote1(String note1) {
		this.note1 = note1;
	}

	public String getNote2() {
		return note2;
	}

	public void setNote2(String note2) {
		this.note2 = note2;
	}

	public String getNote3() {
		return note3;
	}

	public void setNote3(String note3) {
		this.note3 = note3;
	}

	public String getNote4() {
		return note4;
	}

	public void setNote4(String note4) {
		this.note4 = note4;
	}

	public String getActualSupplNo() {
		return actualSupplNo;
	}

	public void setActualSupplNo(String actualSupplNo) {
		this.actualSupplNo = actualSupplNo;
	}

	public String getActualUser1() {
		return actualUser1;
	}

	public void setActualUser1(String actualUser1) {
		this.actualUser1 = actualUser1;
	}

	public String getActualUser2() {
		return actualUser2;
	}

	public void setActualUser2(String actualUser2) {
		this.actualUser2 = actualUser2;
	}

	public Date getActualTime1() {
		return actualTime1;
	}

	public void setActualTime1(Date actualTime1) {
		this.actualTime1 = actualTime1;
	}

	public Date getActualTime2() {
		return actualTime2;
	}

	public void setActualTime2(Date actualTime2) {
		this.actualTime2 = actualTime2;
	}

	public Integer getActualPackageNum2() {
		return actualPackageNum2;
	}

	public void setActualPackageNum2(Integer actualPackageNum2) {
		this.actualPackageNum2 = actualPackageNum2;
	}

	public Integer getMarkStatus() {
		return markStatus;
	}

	public void setMarkStatus(Integer markStatus) {
		this.markStatus = markStatus;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getLastUpdateUser() {
		return lastUpdateUser;
	}

	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	public Integer getOptCounter() {
		return optCounter;
	}

	public void setOptCounter(Integer optCounter) {
		this.optCounter = optCounter;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	@Override
	public String toString() {
		return "TtWhmCountDetail{" + ", ttWhmCountDetailId=" + ttWhmCountDetailId + ", ttWhmCountHeaderId="
				+ ttWhmCountHeaderId + ", countDate=" + countDate + ", partNoVsersion=" + partNoVersion + ", partNameC="
				+ partNameC + ", partNameES=" + partNameES + ", baseUnit=" + baseUnit + ", supplNo=" + supplNo
				+ ", trBasPartSupplId=" + trBasPartSupplId + ", inboundPackNo=" + inboundPackNo + ", packageNum="
				+ packageNum + ", tmBasStorageId=" + tmBasStorageId + ", inbSerialNo=" + inbSerialNo + ", lotNo="
				+ lotNo + ", curQty=" + curQty + ", actualQty1=" + actualQty1 + ", actualQty2=" + actualQty2
				+ ", needCheck=" + needCheck + ", actualStorageId=" + actualStorageId + ", actualPackageNum="
				+ actualPackageNum + ", partPackSerial=" + partPackSerial + ", countStatus=" + countStatus
				+ ", actualPartNo=" + actualPartNo + ", detailSn=" + detailSn + ", note1=" + note1 + ", note2=" + note2
				+ ", note3=" + note3 + ", note4=" + note4 + ", actualSupplNo=" + actualSupplNo + ", actualUser1="
				+ actualUser1 + ", actualUser2=" + actualUser2 + ", actualTime1=" + actualTime1 + ", actualTime2="
				+ actualTime2 + ", actualPackageNum2=" + actualPackageNum2 + ", markStatus=" + markStatus
				+ ", createTime=" + createTime + ", createUser=" + createUser + ", lastUpdateTime=" + lastUpdateTime
				+ ", lastUpdateUser=" + lastUpdateUser + ", optCounter=" + optCounter + ", companyCode=" + companyCode
				+ "}";
	}

	public String getLocNo() {
		return locNo;
	}

	public void setLocNo(String locNo) {
		this.locNo = locNo;
	}
}
